import datetime
from pathlib import Path
from loguru import logger

TIME_SMAP = datetime.datetime.now().strftime("%Y%m%d%H%M%S")

PATH = Path(__file__).parent

CASE_DIR = PATH / 'case'
REPORT_PATH = PATH / 'reports'
REPORT_PATH.mkdir(exist_ok=True)
TASK_DIR = REPORT_PATH / f'{TIME_SMAP}'
TASK_DIR.mkdir()

DATA_DIR = TASK_DIR / 'data'
HTML_DIR = TASK_DIR / 'html'
LOG_PATH = TASK_DIR / 'log'
LOG_PATH.mkdir()

LOG_FILE = LOG_PATH / 'pytest.log'
logger.add(LOG_FILE)